/* ****************************************************************************
 *
 * Copyright (c) Microsoft Corporation. 
 *
 * This source code is subject to terms and conditions of the Microsoft Public License. A 
 * copy of the license can be found in the License.html file at the root of this distribution. If 
 * you cannot locate the  Microsoft Public License, please send an email to 
 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 *
 * You must not remove this notice, or any other, from this software.
 *
 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
 * PARTICULAR PURPOSE.
 * ***************************************************************************/




#if !defined(AFX_PGLMAPPROPPAGE_H__8E1EAF89_5673_4ED9_8541_391ECCB82287__INCLUDED_)
#define AFX_PGLMAPPROPPAGE_H__8E1EAF89_5673_4ED9_8541_391ECCB82287__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PGLMapPropPage.h : header file
//

#include <pgl/core/PGLMap.h>

/////////////////////////////////////////////////////////////////////////////
// CPGLMapPropPage dialog

/*! \brief 2D Map property page.

\ingroup PGLPropPageGroup
*/
class CPGLMapPropPage : public CPropertyPage
{
// Construction
public:
	CPGLMapPropPage(CPGLMapStPtr pMap=CPGLMapStPtr());   // standard constructor

// Dialog Data
	//{{AFX_DATA(CPGLMapPropPage)
	enum { IDD = IDD_PGL_PROPPAGE_MAP };
	double	m_dDx;
	double	m_dDy;
	int		m_iNx;
	int		m_iNxNy;
	int		m_iNy;
	double	m_dLeft;
	double	m_dTop;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPGLMapPropPage)
	public:
	virtual BOOL OnKillActive();
	virtual BOOL OnSetActive();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
	void SetMap(CPGLMapStPtr pMap){	m_pMap=pMap;};
protected:
	CPGLMapStPtr m_pMap;

	// Generated message map functions
	//{{AFX_MSG(CPGLMapPropPage)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PGLMAPPROPPAGE_H__8E1EAF89_5673_4ED9_8541_391ECCB82287__INCLUDED_)
